<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
    <link rel="stylesheet" type="text/css" th:href="@{{path}/common/v3/summernote/summernote-bs3.css?v={v}(path=${staticPath},v=${v})}"/>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <div data-th-replace="common/functionDepict"></div>
    <div class="row">
        <form id="sysConfigForm">
            <div class="col-sm-9">
                <div class="float-e-margins">
                    <div class="ibox-title">
                        <h5>旁听支付分成 <small class="m-l-sm">旁听支付金额分成配置(<samp class="c-red">平台、用户、讲师的分成比例总和必须等于10</samp>)</small></h5>
                    </div>
                    <div class="ibox-content pt10">
                        <div class="form-horizontal">

                            <div class="form-group">
                                <label class="col-sm-2 control-label text-right">
                                    <i class="c-red">*</i> 平台分成比例</label>
                                <div class="col-sm-6">
                                    <input type="text" name="sysTerrace" th:value="${sysConfig['contextTreeMap']['sysTerrace']}" class="form-control"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label text-right">
                                    <i class="c-red">*</i> 用户分成比例</label>
                                <div class="col-sm-6">
                                    <input type="text" name="user" th:value="${sysConfig['contextTreeMap']['user']}" class="form-control"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label text-right">
                                    <i class="c-red">*</i> 讲师分成比例</label>
                                <div class="col-sm-6">
                                    <input type="text" name="teacher" th:value="${sysConfig['contextTreeMap']['teacher']}" class="form-control"/>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label text-right">是否支持退费</label>
                                <div class="col-sm-6">
                                    <div style="margin-top: 5px">
                                        <div class="switch">
                                            <div class="onoffswitch">
                                                <input name="refundSwitch" th:checked="${sysConfig['contextTreeMap']['refundSwitch']} == 'ON'" type="checkbox" class="onoffswitch-checkbox" id="example1">
                                                <label class="onoffswitch-label" for="example1">
                                                    <span class="onoffswitch-inner"></span>
                                                    <span class="onoffswitch-switch"></span>
                                                </label>
                                            </div>
                                            <span>
                                                <small class="fs12 c-999">说明：ON= 开启 后前台各端用户付费问答可退费（当用户创建了付费问答并支付后，问答专家或平台运营未在规定时间内回答
此问题的话，此用户支付的金额将自动回退至用户 “我的账户”中。）
                                                </small>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="hr-line-dashed refundTime" th:classappend="${sysConfig['contextTreeMap']['refundSwitch']} == 'ON'? '' : 'hide'"></div>
                            <div class="form-group refundTime" th:classappend="${sysConfig['contextTreeMap']['refundSwitch']} == 'ON'? '' : 'hide'">
                                <label class="col-sm-2 control-label text-right">
                                    <i class="c-red">*</i> 退费时间(单位/天)
                                </label>
                                <div class="col-sm-7 ">
                                    <div class="radio i-checks">
                                        <label class="ml20"><input th:checked="${sysConfig['contextTreeMap']['refundTime']} == 2" value="2"  name="refundTime" type="radio">2天</label>
                                        <label class="ml20"><input th:checked="${sysConfig['contextTreeMap']['refundTime']} == 7" value="7"  name="refundTime" type="radio">7天</label>
                                        <label class="ml20"><input th:checked="${sysConfig['contextTreeMap']['refundTime']} == 15" value="15"  name="refundTime" type="radio">15天</label>
                                        <label class="ml20"><input th:checked="${sysConfig['contextTreeMap']['refundTime']} == 30" value="30"  name="refundTime" type="radio">30天</label>
                                    </div>
                                    <!--<input type="text" name="refundTime" th:value="${sysConfig['contextTreeMap']['refundTime']}" class="form-control"/>
                                    <span>
                                        <small class="fs12 c-999">比如：48时，72时</small>
                                    </span>-->
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content pt10" style="border-style:none;">
                        <div class="form-horizontal">
                            <div class="form-group hide">
                                <label class="col-sm-2 control-label text-right">
                                    <i class="c-red">*</i> 配置内容说明</label>
                                <div class="col-sm-6">
                                    <input type="text" name="depict" th:value="${sysConfig['depict']}" class="form-control"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <input type="hidden" name="id" th:value="${sysConfig['id']}"/>
                                    <input type="hidden" name="configType" th:value="${sysConfig['configType']}"/>
                                    <button class="btn btn-danger" id="saveConfig" type="button">保存配置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div data-th-replace="layout/head-footer"></div>
<script type="text/javascript" th:src="@{{path}/admin/business/qa/question/qa-config.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>